using net_work.Data.Enum.Cam;

namespace net_work.Data.Entity.Cam;

/// <summary>
/// 消息实体类
/// </summary>
public class Message : BaseEntity
{
    /// <summary>
    /// 消息标题
    /// </summary>
    public required string Title { get; set; }

    /// <summary>
    /// 消息内容
    /// </summary>
    public required string Content { get; set; }

    /// <summary>
    /// 消息类型
    /// </summary>
    public required MessageType Type { get; set; }

    /// <summary>
    /// 消息状态
    /// </summary>
    public required MessageStatus Status { get; set; }

    /// <summary>
    /// 对象类型
    /// </summary>
    public MessageObjType? ObjType { get; set; }

    /// <summary>
    /// 对象（外键）
    /// </summary>
    public long? ObjId { get; set; }
}